from django.conf.urls.defaults import *
from main.views import *

urlpatterns = patterns('',

    (r'^(?i)info/(?P<page_name>[A-Za-z0-9]+)[/]?$', info_page),

    (r'^(?i)friends/add[/]?$', add_friend),
    (r'^(?i)friends/profile/(?P<friend_key>[A-Za-z0-9]+)[/]?$', view_friend),
    (r'^(?i)friends/update[/]?$', update_profile),

    (r'^(?i)people/(?P<key_name>[A-Za-z0-9]+)[/]?$', view_person),
    (r'^(?i)people/that_are/(?P<update_key_name>[A-Za-z0-9]+)[/]?$', list_people_that_are),
    (r'^(?i)people/that_have_been/(?P<update_key_name>[A-Za-z0-9]+)[/]?$', list_people_that_have_been),

    (r'^(?i)update/create[/]?$', create_update),
    (r'^(?i)update/(?P<action>[-\w]+)/(?P<key>[-\w]+)[/](?P<value>[-\w]+)[/]?$', update_action),
    (r'^(?i)update/view/(?P<update_key>[A-Za-z0-9]+)[/]?$', view_update),

    (r'^(?i)ajax/verbs/get[/]?$', ajax_get_verbs),
    (r'^(?i)ajax/get_latest_update[/]?$', ajax_get_latest_update),

    (r'^(?i)rss/updates/verb/(?P<verb_name>[A-Za-z0-9]+)[/]?$', rss_updates),
    (r'^(?i)rss/updates/for/(?P<person_key>[A-Za-z0-9]+)/verb/(?P<verb>[A-Za-z0-9]+)[/]?$', rss_updates),
    (r'^(?i)rss/updates/for/(?P<person_key>[A-Za-z0-9]+)[/]?$', rss_updates),
    (r'^(?i)rss/updates/latest[/]?$', rss_updates),

    (r"^$", homepage),

)
